const router = require('koa-router')();
const noticeModel = require('../model/notice');
// 获取公告
router.get('/notice', async (ctx, next) => {
    await noticeModel.getNotice(ctx);
});
// 增加公告
router.post('/add/notice', async (ctx, next) => {
    await noticeModel.addNotice(ctx);
});
// 删除公告
router.post('/delete/notice', async (ctx, next) => {
    await noticeModel.deleteNotice(ctx);
});
// 编辑公告
router.post('/edit/notice', async (ctx, next) => {
    await noticeModel.editNotice(ctx);
});
module.exports = router;